package com.lingyu.pojo;

import java.util.Date;

public class Comment {
    private String commentId;

    private String commentContext;

    private Comment father;

    private User user;
    
    private Topic topic;

    private Date time;

    public String getCommentId() {
        return commentId;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId == null ? null : commentId.trim();
    }

    public String getCommentContext() {
        return commentContext;
    }

    public void setCommentContext(String commentContext) {
        this.commentContext = commentContext == null ? null : commentContext.trim();
    }

    
   
    public Comment getFather() {
		return father;
	}

	public void setFather(Comment father) {
		this.father = father;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

	public Topic getTopic() {
		return topic;
	}

	public void setTopic(Topic topic) {
		this.topic = topic;
	}

	@Override
	public String toString() {
		return "Comment [commentId=" + commentId + ", commentContext=" + commentContext + ", father=" + father
				+ ", user=" + user + ", topic=" + topic + ", time=" + time + "]";
	}
    
    
}